//
//  WarSettingLayer.h
//  DiceWar
//
//  Created by xiaofeng on 27/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef DiceWar_WarSettingLayer_h
#define DiceWar_WarSettingLayer_h

#include "cocos2d.h"

class WarSettingLayer : public cocos2d::CCLayer
{
public:
    LAYER_NODE_FUNC(WarSettingLayer);
    
    bool init();

private:
    bool initBackground();
    bool initUserinterface();
    bool initDisplay();
    
    void onChangeModeButtonDown(cocos2d::CCObject* pSender);
    void onChangeNumPlayersButtonDown(cocos2d::CCObject* pSender);
    void onNextButtonDown(cocos2d::CCObject* pSender);
    
    void updateModeLabel();
    void updateNumPlayersLabel();
    
private:
    cocos2d::CCMenuItemFont* m_pGameModeLabel;
    cocos2d::CCMenuItemFont* m_pNumPlayersLabel;
};

#endif
